package com.haoshuang.zhouzhoubang.ui.page.mine.wallet.frozen.record


import com.haoshuang.zhouzhoubang.databinding.ItemDetails2Binding
import com.haoshuang.zhouzhoubang.model.bean.DepositGroupByDayBean
import com.mufeng.libs.base.BaseBindingHolder
import com.mufeng.libs.base.BaseBindingQuickAdapter


/**
 * 订单模块中的订单列表适配器
 * */
class ForzenAdapter(data: MutableList<DepositGroupByDayBean.DepositGroupBean.DepositBean>) :
    BaseBindingQuickAdapter<DepositGroupByDayBean.DepositGroupBean.DepositBean, ItemDetails2Binding>(
        data
    ) {
    override fun onBindViewHolder(
        holder: BaseBindingHolder,
        position: Int,
        item: DepositGroupByDayBean.DepositGroupBean.DepositBean?
    ) {
        val binding = ItemDetails2Binding.bind(holder.itemView)
        binding.apply {
            tvTitle.text = item?.title
            tvValue.text = item?.money
            tvTime.text = item?.add_time
            if (item?.status == 0) {
                tvState.text = "(冻结中)"
            } else {
                tvState.text = "(已解冻)"
            }
        }
    }


}